package com.mymy.common.domain;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class Person {
    private String name;
    private boolean sex;
    private int age;
    private String[] xingqu;
    private List<String> address;
    private Map<String,Object> cards;
    private Person partner;//配偶

    public Person() {
        System.out.println("sdf");
    }


    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", xingqu=" + Arrays.toString(xingqu) +
                ", address=" + address +
                ", cards=" + cards +
                ",\n partner=" + partner +
                '}';
    }

    public String getName() {
        return name;
    }

    public Person setName(String name) {
        this.name = name;
        return this;
    }

    public boolean isSex() {
        return sex;
    }

    public Person setSex(boolean sex) {
        this.sex = sex;
        return this;
    }

    public int getAge() {
        return age;
    }

    public Person setAge(int age) {
        this.age = age;
        return this;
    }

    public String[] getXingqu() {
        return xingqu;
    }

    public Person setXingqu(String[] xingqu) {
        this.xingqu = xingqu;
        return this;
    }

    public List<String> getAddress() {
        return address;
    }

    public Person setAddress(List<String> address) {
        this.address = address;
        return this;
    }

    public Map<String, Object> getCards() {
        return cards;
    }

    public Person setCards(Map<String, Object> cards) {
        this.cards = cards;
        return this;
    }

    public Person getPartner() {
        return partner;
    }

    public Person setPartner(Person partner) {
        this.partner = partner;
        return this;
    }
}
